<?php
header('content-type:text/html,charset=utf-8');
include '../public/db.php';
session_start();
//@$cid=$_REQUEST['cid'];
@$cid=$_SESSION['cid'];
$f = selectAll('select func.func,func.id from class_func join func on class_func.fid=func.id where class_func.cid=:cid',array('cid'=>$cid));

echo json_encode($f);